<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动小练习</title>
    <style>
      /* 清除浏览器默认样式 */
        * {
          margin: 0px;
          padding: 0px;
        }
        .leftfix {
            float: left;
        }
        .rightfix {
          float: right;
        }
        .clearfix::after {
          content: '';
          display: block;
          clear: both;
        }
      /* 最大父容器 */
        .container {
          width: 960px;
          margin: 0 auto;
          text-align: center;
        }
        .logo {
          width: 200px;
        }
        .banner1 {
          width: 540px;
          margin: 0 10px;
        }
        .banner2 {
          width: 200px;
        }
        .logo,.banner1,.banner2 {
          height: 80px;
          background-color: #ccc;
          line-height: 80px;
        }
        .menu {
          margin-top: 10px;
          height: 30px;
          line-height: 30px;
          background-color: #ccc;
        }
        .content {
          margin-top: 10px;
        }
        .item1,.item2 {
          width: 368px;
          height: 198px;
          border: black solid 1px;
          line-height: 198px;
          margin-right: 10px;
        }
        .bottom {
          margin-top: 10px;
        }
        .item3,.item4,.item5,.item6 {
          width: 178px;
          height: 198px;
          border: black 1px solid;
          margin-right: 10px;
          line-height: 198px;
        }
        .item7,.item8,.item9 {
          width: 198px;
          height: 128px;
          border: black 1px solid;
          line-height: 128px;
        }
        .item8 {
          margin: 10px 0;
        }
        .foot {
          margin-top: 10px;
          height: 60px;
          background-color: #ccc;
          line-height: 60px;
        }
    </style>
</head>
<body>
    <div class="container">
<!--      头部页面-->
      <div class="page-header clearfix">
          <div class="logo leftfix">logo</div>
          <div class="banner1 leftfix">banner1</div>
          <div class="banner2 leftfix">banner2</div>
        </div>
<!--      菜单-->
      <div class="menu">菜单</div>
<!--      内容区-->
      <div class="content clearfix">
<!--        左区域-->
        <div class="left leftfix">
<!--          上区域-->
          <div class="top clearfix">
            <div class="item1 leftfix">栏目一</div>
            <div class="item2 leftfix">栏目二</div>
          </div>
<!--          下区域-->
          <div class="bottom clearfix">
            <div class="item3 leftfix">栏目三</div>
            <div class="item4 leftfix">栏目四</div>
            <div class="item5 leftfix">栏目五</div>
            <div class="item6 leftfix">栏目六</div>
          </div>
        </div>

<!--        右区域-->
        <div class="right leftfix">
          <div class="item7">栏目七</div>
          <div class="item8">栏目八</div>
          <div class="item9">栏目九</div>
        </div>
      </div>
<!--      页脚-->
      <div class="foot">
        页脚
      </div>
    </div>
</body>
</html>